{extend name="main/index" /}
{block name="main"}

<div class="content-page">
    <div class="content">
                <div class="row">

            <div class="col-md-12">
                <div class="widget">
                    <div class="widget-header transparent">
                        <h2><strong>Sortable</strong> Table</h2>
                        <div class="additional-btn">
                            <a href="#" class="hidden reload"><i class="icon-ccw-1"></i></a>
                            <a href="#" class="widget-toggle"><i class="icon-down-open-2"></i></a>
                            <a href="#" class="widget-close"><i class="icon-cancel-3"></i></a>
                        </div>
                    </div>
                    <div class="widget-content">
                        <div class="table-responsive">
                            <table data-sortable class="table">
                                <thead>
                                <tr>
                                    <th>ID</th>
                                    <th>节点名称</th>
                                    <th>模块名</th>
                                    <th>操作</th>
                                    <th>状态</th>
                                    <th>操作</th>
                                </tr>
                                </thead>

                                <tbody>
                                {volist name="data" id="v" }
                                <tr>
                                    <td>{$v.id}</td>
                                    <td>{$v.name}</td>
                                    <td><strong>{$v.mname}</strong></td>
                                    <td>{$v.aname}</td>
                                    <td>{$v.status == 1?'启用':'禁用'}</td>
                                    <td>
                                        <div class="btn-group btn-group-xs">
                                            <a href="{:url('admin/Node/dodel')}?id={$v.id}" data-toggle="tooltip" class="btn btn-default"><i>删除</i></a>
                                            <a href="{:url('admin/Node/edit')}?id={$v.id}" data-toggle="tooltip" class="btn btn-default"><i>修改</i></a>
                                        </div>
                                    </td>
                                </tr>
                                {/volist}
                                </tbody>
                            </table>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>

{/block}